home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / multisample.z / multisample
Encoding:
Text File  |  2002-10-03  |  7.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. mmmmuuuullllttttiiiissssaaaammmmpppplllleeee((((3333GGGG))))                                                mmmmuuuullllttttiiiissssaaaammmmpppplllleeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mmmmuuuullllttttiiiissssaaaammmmpppplllleeee - specifies the use of the multisample buffer
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd mmmmuuuullllttttiiiissssaaaammmmpppplllleeee((((BBBBoooooooolllleeeeaaaannnn bbbboooooooollll))))
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _b_o_o_l   is either TRUE or FALSE, indicating whether rendering is to make
  16.             use of the multisample buffer or not.  By default mmmmuuuullllttttiiiissssaaaammmmpppplllleeee is
  17.             TRUE.
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      When multisample is enabled, and multisample buffers exist in the current
  21.      framebuffer configuration in the current drawmode, rendered primitives
  22.      directly affect the samples in the multisample buffer.  Immediately after
  23.      the multisample locations at a pixel are modified, the front and/or back
  24.      framebuffer colors are written with the "average" value of the
  25.      multisample color values.  No change is made to the standard z buffer or
  26.      stencil buffer that may be associated with the color buffers, and their
  27.      contents do not affect rendering operation.
  28.  
  29.      Polygons are sampled into the multisample buffer as much as they are
  30.      sampled into the standard single-sample buffer.  A single color value is
  31.      computed for the entire pixel, regardless of the number of samples at
  32.      that pixel.  Each multisample location is then written with this color,
  33.      if and only if, it is geometrically within the exact polygon boundary.
  34.      If the Z buffer is enabled, the correct depth value at each multisample
  35.      location is computed and used to determine whether that sample should be
  36.      written or not.  If stencil is enabled, the test is performed at each
  37.      multisample location.  Framebuffer modes alpha test, blending, dithering,
  38.      and writemask affect the modification of the individual multisamples, and
  39.      have no effect on the transfer of the "average" color value to the front
  40.      or back color buffers.  Alternately, buffer enables ffffrrrroooonnnnttttbbbbuuuuffffffffeeeerrrr,
  41.      bbbbaaaacccckkkkbbbbuuuuffffffffeeeerrrr, lllleeeeffffttttbbbbuuuuffffffffeeeerrrr, rrrriiiigggghhhhttttbbbbuuuuffffffffeeeerrrr, and zzzzddddrrrraaaawwww have no effect on the
  42.      modification of the individual multisample locations; they affect only
  43.      the transfer of the "average" color value.
  44.  
  45.      Polygon pattern and line style pattern bits apply equally to all
  46.      multisample locations at a pixel.  All sample locations are considered
  47.      for modification if the pattern bit is one.  None are considered if the
  48.      pattern bit is zero.
  49.  
  50.      Lines are sampled into the multisample buffer as rectangles centered
  51.      around the exact zero-area segment.  The rectangle width is equal to the
  52.      current linewidth. Its length is exactly equal to the length of the
  53.      segment.  The rectangles of colinear, abutting line segments abut
  54.      exactly, so no multisamples are missed or drawn twice near the shared
  55.      vertex.
  56.  
  57.      Points are sampled into the multisample buffer as circles centered around
  58.      the exact point location.  The circle diameter is equal to the current
  59.      pointsize.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. mmmmuuuullllttttiiiissssaaaammmmpppplllleeee((((3333GGGG))))                                                mmmmuuuullllttttiiiissssaaaammmmpppplllleeee((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      Polysmooth, linesmooth, and pointsmooth, must be disabled while
  75.      multisample is enabled, or rendering results are undefined.
  76.  
  77.      Text is sampled into the multisample buffer by converting each '1' in the
  78.      character mask into a 1x1 square, which is then sampled just like a
  79.      polygon.
  80.  
  81.      During pixel operations either all multisample locations at a pixel are
  82.      sampled or all are not.
  83.  
  84.      There are no special clear commands for the multisample buffer.  Rather,
  85.      the standard cccclllleeeeaaaarrrr, zzzzcccclllleeeeaaaarrrr, sssscccclllleeeeaaaarrrr, and cccczzzzcccclllleeeeaaaarrrr commands affect the
  86.      multisample buffer as much as they affect the standard color, stencil,
  87.      and z buffers.  Clear modifies the enabled color buffers, and always
  88.      modifies the color portion of each multisample location.  zzzzcccclllleeeeaaaarrrr operates
  89.      on all multisample z locations.  sssscccclllleeeeaaaarrrr operates on all multisample
  90.      stencil locations.  cccczzzzcccclllleeeeaaaarrrr behaves like cccclllleeeeaaaarrrr and zzzzcccclllleeeeaaaarrrr, except that
  91.      the z value is specified.
  92.  
  93.      When multisample is disabled, but the system is configured for
  94.      multisample operation, rendering neither affects the multisample buffer,
  95.      nor is it a function of the contents of the multisample buffer.  It is as
  96.      though there were no multisample buffer at all.  zbuffer, if configured
  97.      and enabled, tests and updates the standard z buffer, not the zbuffer
  98.      locations in the multisample buffer.  Likewise stencil, if configured and
  99.      enabled, tests and updates the standard stencil buffer, not the stencil
  100.      locations in the multisample buffer.
  101.  
  102.      Polysmooth, linesmooth, and pointsmooth are well defined when multisample
  103.      is false.
  104.  
  105.      Multisample state is maintained but ignored if no multisample buffer is
  106.      configured.  Because it is not possible to allocate a multisample buffer
  107.      in color index mode, mmmmuuuullllttttiiiissssaaaammmmpppplllleeee is always ignored in color index mode.
  108.  
  109.      The multisample buffer is a part of the normal framebuffer.  multisample
  110.      should be called only while drawmode is NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW, and it affects
  111.      rendering only while drawmode is NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW.
  112.  
  113. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  114.      msalpha, msmask, mspattern, mssize
  115.  
  116. BBBBUUUUGGGGSSSS
  117.      On the IRIS-4D RealityEngine model the values of frontbuffer, backbuffer,
  118.      leftbuffer, and rightbuffer should not be changed between the time cccclllleeeeaaaarrrr
  119.      or cccczzzzcccclllleeeeaaaarrrr are called and the time that the rendered image is complete.
  120.      At least one of the color buffers must be enabled during all use of the
  121.      multisample buffer.
  122.  
  123.      Points are in fact sampled into the multisample buffer as squares where
  124.      the squre width is equal to the current pointsize.  This will be fixed in
  125.      a future release.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.